<?
include("common/header.html");
include("../_made/le.cfg.php");
include("common/left.html");
if(!$_SESSION['memberID']){exit("<script>window.location='dlogin.html'</script>");}
$sel="select dcodeURL from pft_member where id=".$_SESSION['memberID'];
$GLOBALS['le']->query($sel);
$GLOBALS['le']->fetch_assoc();
$url=$GLOBALS['le']->f("dcodeURL");
$btn=$url?"修 改":"提 交";
if ($url){
	$ac=$GLOBALS['_ac'];
	$pw=$GLOBALS['_pw'];
	$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
	$sel="select dname,account from pft_member where id=".$_SESSION['memberID'];
	$GLOBALS['le']->query($sel);
	$GLOBALS['le']->fetch_assoc();
	$account=$GLOBALS['le']->f("account");
	$oname=$GLOBALS['le']->f("dname");
	$res=$s->Create_Conn_REC($account, $oname);
}

$sql = 'select jiutian_auth from pft_member_extinfo where fid='.$_SESSION['memberID'];
$GLOBALS['le']->query($sql);
$GLOBALS['le']->fetch_assoc();
$jiutian_auth = $le->f('jiutian_auth');
//echo $jiutian_auth;
include("tpl/soap.html");
include("common/footer.html");?>